#ifndef HELPER_H
#define HELPER_H

#include <QStringList>
#include <Product.h>
#include <InvoiceItem.h>
#include <Invoice.h>

#include <QMap>

namespace ecocity
{

class Helper
{
public:

    static QStringList get_product_names( const std::vector< Product >& products );

    static QStringList get_product_names( const std::vector< InvoiceItem >& items );

    static QStringList get_proveider_names( const std::vector< Product >& products );

    static QList< int > get_tax_rates( const Invoice& invoice );

    static float get_taxes( const std::vector< InvoiceItem >& items, int tax_rate );

    /*
     *  Returns map< tax_rate, euros >
     */
    static QMap< int, float > get_taxes( const Invoice& invoice, QList< int > tax_rates );

    static std::vector< Proveider > get_proveiders( const std::vector< Product >& products );
};


}


#endif // HELPER_H
